package com.atguigu.gulimall.cart.service;

import com.atguigu.gulimall.cart.vo.CartItemVO;
import com.atguigu.gulimall.cart.vo.CartVO;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItemVO addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVO getCartItem(Long skuId);

    CartVO getCart() throws ExecutionException, InterruptedException;

    void clearCart(String cartKey);

    void checkItem(Long skuId, boolean checked);

    void change(Long skuId, Integer count);

    void deleteItem(Long skuId);

    List<CartItemVO> getCurrentUserCartItems();
}
